import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * class Item_enemigo
 * @author (Santos Miranda Luis Gerardo) 
 * @author (Lopez Rangel Arturo)
 */
public class Item_enemigo extends Actor
{
    private GreenfootSound grito;////Reproduce un grito de luigi al momento de tocarlo
    
    /**
     * Constructor of class Item_enemigo
     */
    public Item_enemigo()
    {
        grito=new GreenfootSound("grito.mp3");
    }
    
    /**
     * checks for up to Luigi
     */

    public boolean checaContacto() 
    {      
        return(this.getOneIntersectingObject(Jugador.class)!=null);
    }
    
    /**
     * Return grito
     */

    public GreenfootSound getgrito()
    {
        return grito;
    }

}
